]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowMenu: Only disable "Always on Top" for fully maximized
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 25 Sep 2014 19:26:07 +0000 (21:26 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 25 Sep 2014 21:10:03 +0000 (23:10 +0200)
Since (mutter) commit 49400657caae27 we disable the "Always on Top"
action for maximized windows, however when commit e7af257814b1
moved the window menu into the shell, this behavior was accidentally
extended to partially maximized (including tiled) windows.
As it can be desirable in this case to keep the window visible while
interacting with a different one, restore the previous behavior.

https://bugzilla.gnome.org/show_bug.cgi?id=737382

js/ui/windowMenu.js

index cec044e0029ad2b64990199dbf670983d7bf3f89..3d378fad7bf0aa176691417823fb940690b93c0d 100644 (file)
@@ -75,7 +75,7 @@ const WindowMenu = new Lang.Class({
         }));
         if (window.is_above())
             item.setOrnament(PopupMenu.Ornament.DOT);
-        if (window.get_maximized() ||
+        if (window.get_maximized() == Meta.MaximizeFlags.BOTH ||
             type == Meta.WindowType.DOCK ||
             type == Meta.WindowType.DESKTOP ||
             type == Meta.WindowType.SPLASHSCREEN)